#include <stdio.h>

int main()
{
    double x;
    int y;
    printf("Input x\n");
    scanf("%lf", &x);
    y = x >= 0.0 ? (x > 0.0 ? 1 : 0) : -1;
    printf("y = %d\n", y);
    return 0;
}